﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace OBUCare.Web.Models
{
    /// <summary>
    /// 交易流水信息
    /// </summary>
    public class TransactionLogViewModel
    {
        /// <summary>
        /// 如果流水号不为空，则此编号为流水号，如果流水号为空，则为交易日志号
        /// </summary>
        public long ID { get;set ; }

        /// <summary>
        /// 交易日志编号
        /// </summary>
        public long? TransactionLogID { get; set; }

        /// <summary>
        /// 日志表中的operationID->维修单ID
        /// </summary>
        public long? OperationID { get; set; }

        /// <summary>
        /// 流水编号
        /// </summary>
        public long? SERIAL_ID { get; set; }

        /// <summary>
        /// 流水号
        /// </summary>
        [DisplayName("流水号")]
        public string SERIAL_NO { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
         [DisplayName("客户编号")]
        public string USER_NO { get; set; }

        /// <summary>
         /// 客户名称
        /// </summary>
         [DisplayName("客户名称")]
        public string User_name { get; set; }

         /// <summary>
         /// 交易类型
         /// </summary>
         [DisplayName("交易类型编号")]
         public string TransactionTypeID { get; set; }

        /// <summary>
        /// 交易类型
        /// </summary>
        [DisplayName("交易类型")]
        public string TransactionType { get; set; }

        /// <summary>
        /// 交易类型标识
        /// </summary>
        [DisplayName("交易类型标识")]
        public int OPERATION_KIND { get; set; }

        [DisplayName("标签号")]
        public string OBU_NO { get; set; }

        /// <summary>
        /// 维修费
        /// </summary>
        [DisplayName("交易金额(元)")]
        public decimal? RepairPrice  { get; set; }


        /// <summary>
        /// 服务费
        /// </summary>
        [DisplayName("服务费(元)")]
        public decimal? ServicePrice { get; set; }

        /// <summary>
        /// 退费
        /// </summary>
        [DisplayName("退费(元)")]
        public decimal? ReturnPrice { get; set; }

        /// <summary>
        /// 其它费用
        /// </summary>
        [DisplayName("其它费用")]
        public decimal? OtherPrice { get; set; }

        [DisplayName("交易总金额(元)")]
        public decimal? SumPrice { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        [DisplayName("交易时间")]
        public DateTime CREATED_DATE { get; set; }

        /// <summary>
        /// 交易明细
        /// </summary>
        [DisplayName("交易明细")]
        public string REMARK { get; set; }

        [DisplayName("操作员")]
        public string Operator { get; set; }

        [DisplayName("操作员名称")]
        public string OperatorName { get; set; }

        [DisplayName("营业厅")]
        public string Agent { get; set; }

        [DisplayName("营业厅名称")]
        public string AgentName { get; set; }
    }
}
